<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "assets_log".
 *
 * @property integer $assets_log_id
 * @property integer $uper_id
 * @property string $uper_type
 * @property string $path
 * @property string $type
 * @property integer $lifetime
 * @property integer $create_time
 */
class AssetsLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'assets_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uper_id', 'uper_type', 'path', 'type', 'create_time'], 'required'],
            [['uper_id', 'lifetime', 'create_time'], 'integer'],
            [['uper_type', 'type'], 'string'],
            [['path'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'assets_log_id' => '资源记录ID',
            'uper_id' => '上传者ID',
            'uper_type' => '上传者类型',
            'path' => '路径',
            'type' => '文件类型',
            'lifetime' => '有效期',
            'create_time' => '创建时间',
        ];
    }
}
